<?php
namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;

class Empower extends Model
{

    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;
    protected $autoWriteTimestamp = true;


    //开始时间
    protected function getStartTimeAttr($value)
    {
        return date('Y-m-d',$value);
    }
    //到期时间
    protected function getEndTimeAttr($value)
    {
        return date('Y-m-d',$value);
    }
    
}